#pragma once
#ifndef __LISTITEM_H
#define __LISTITEM_H

#include <stdlib.h>
#include <iostream>
using namespace std;

class ListItem
{
private:
	int MemoryIndex;
	int BlockSize;
	
	ListItem *Next;

public:
	ListItem(int m,int s,ListItem *l=NULL);
	~ListItem(void);
	void setNext(ListItem  *other);
	ListItem * getNext();

	int getMemoryIndex() {return MemoryIndex;}
	int getBlockSize  () {return BlockSize;}
	void setMemoryIndex(int m){MemoryIndex = m;}
	void setBlockSize(int b) {BlockSize=b;}

	friend ostream & operator<<(ostream &os,const ListItem *other);
	bool operator==(const ListItem & other);
	
};
#endif
